from django.views.generic.list import ListView
from friend.models import Friend, FriendForm
from django.views.generic.edit import CreateView

class ListFriendView(ListView):
    model = Friend
    template_name = "friend/friend_list.html"


class CreateFriendView(CreateView):
    form_class = FriendForm
    success_url = "/friend/"
    template_name = "friend/friend_form.html"
